Skip to content

allow for provider declaration with index to be parsed. #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crash-bandi
Copy link

I am aware of the statement that this repository does not accept external pull requests, but this addresses an issue with terraform-docs that cannot otherwise be resolved (as far as I can tell), so I am going to try just incase.

With the recent added support to .tofu files, it appears there is at least a limited desire to support OpenTofu. This update allows for a provider declaration on a resource or data source with an index to be specified, as was introduced with OpenTofu v1.9.0. This fixes issue 839 opened on terraform-docs, and is the only way to do so as far as I can tell.

Please let me know if any additional activities are required on my part to make this acceptable.

@clarity-jason
Copy link

Is it worth opening a PR against the upstream project instead of, or in addition to, this fork? They do say "We would be happy to review PRs to fix bugs in existing functionality," which IMO this is.

@crash-bandi
Copy link
Author

Is it worth opening a PR against the upstream project instead of, or in addition to, this fork? They do say "We would be happy to review PRs to fix bugs in existing functionality," which IMO this is.

Since the upstream project owner is Hashicorp, and this suggested change is to add support for OpenTofu (a direct open source competitor to their Terraform product), I do not believe it is worth attempting to submit this change there as I am quite certain it will never get approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when using dynamic keys in for_each statements
2 participants